<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理项目填报相关内容</title>
<link href="/styles/style.css" rel="stylesheet" type="text/css">
</head>
<body>
	<hr style="border: 1px #000000 dashed; width: 98%;" />
	<form action="/admin/find" method="post">
		<table width="98%" style="text-align: center; margin: 0 auto;">
			<tr>
				<td>根据年份查询：&nbsp;&nbsp; <input name="date" type="text" />&nbsp;&nbsp;
					<span style="width: 50px;"> <input name="search2"
						type="submit" value="查 询" class="btn" />
				</span></td>
			</tr>
		</table>
	</form>
	<c:forEach items="${page.list }" var="item">
		<table class="table11" style="margin: 0 auto; width: 60%;">
			<tr>
				<th colspan="3" style="text-align: center;">${item.date }年度项目填报相关文件</th>
			</tr>
			<tr>
				<th style="width: 70px;">项目类别</th>
				<th style="width: 70px;">文件</th>
				<th style="width: 70px;">操作</th>
			</tr>
			<tr>
				<td>中央级项目</td>
				<td><c:choose>
						<c:when test="${ empty item.mname }">
							无
						</c:when>
						<c:otherwise>
							${item.mname }
						</c:otherwise>
					</c:choose></td>
				<td><c:choose>
						<c:when test="${empty item.mname }">
							<a href="/admin/adminup">上传</a>
						</c:when>
						<c:otherwise>
							<a
								href="/admin/deleteproject?aprojectid=${item.aprojectid }&mname=${item.mname}">删除</a>
						</c:otherwise>
					</c:choose></td>
			</tr>
			<tr>
				<td>省级项目</td>
				<td><c:choose>
						<c:when test="${ empty item.pname }">
							无
						</c:when>
						<c:otherwise>
							${item.pname }
						</c:otherwise>
					</c:choose></td>
				<td><c:choose>
						<c:when test="${empty item.pname }">
							<a href="/admin/adminup">上传</a>
						</c:when>
						<c:otherwise>
							<a
								href="/admin/deleteproject?aprojectid=${item.aprojectid }&pname=${item.pname}">删除</a>
						</c:otherwise>
					</c:choose></td>
			</tr>
			<tr>
				<td>市级项目</td>
				<td><c:choose>
						<c:when test="${ empty item.cname }">
							无
						</c:when>
						<c:otherwise>
							${item.cname }
						</c:otherwise>
					</c:choose></td>
				<td><c:choose>
						<c:when test="${empty item.cname }">
							<a href="/admin/adminup">上传</a>
						</c:when>
						<c:otherwise>
							<a
								href="/admin/deleteproject?aprojectid=${item.aprojectid }&cname=${item.cname}">删除</a>
						</c:otherwise>
					</c:choose></td>
			</tr>
			<tr>
				<td>其他项目</td>
				<td><c:choose>
						<c:when test="${ empty item.oname }">
							无
						</c:when>
						<c:otherwise>
							${item.oname }
						</c:otherwise>
					</c:choose></td>
				<td><c:choose>
						<c:when test="${empty item.oname }">
							<a href="/admin/adminup">上传</a>
						</c:when>
						<c:otherwise>
							<a
								href="/admin/deleteproject?aprojectid=${item.aprojectid }&oname=${item.oname}">删除</a>
						</c:otherwise>
					</c:choose></td>
			</tr>
		</table>
		<br />
	</c:forEach>
	<br>
	<div>
		总共有<span class="red">${page.count }</span>条记录，总共有<span class="red">${page.total }</span>页，当前第<span
			class="red">${page.current }</span>页。 <a id="First"
			href="/admin/projectlist?current=1">首页</a> <a id="Prev"
			href="/admin/projectlist?current=${page.current-1 }">上一页</a> <a
			id="Next"
			href="/admin/projectlist?current=${page.current +1<=page.total?page.current +1:page.total}">下一页</a>
		<a id="Last" href="/admin/projectlist?current=1">尾页</a> 转到第 <select
			name="GoTo" id="GoTo">
			<c:forEach begin="1" end="${page.total }" step="1" var="index">
				<option value="${index }">${index }</option>
			</c:forEach>
		</select>页
	</div>
</body>
</html>